<?php
header ( 'Content-Type:text/html; charset=UTF-8' );
@$name = $_REQUEST ['zcusername'];
$pdo = new PDO ( 'mysql:dbname=crm; charset=utf8', 'root' );
$s = $pdo->prepare ( 'select * from username' );
$s->execute ();
$data = $s->fetchAll ( PDO::FETCH_NAMED );
foreach ( $data as $value ) {
	if ($name == $value ['name']) {
		die("false");
	}
}
	echo "true";
?>
